package org.example.service;

import org.example.pojo.Book;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;



/**
 * @author TonySong
 * @date 2024/5/15 0015
 * @time 14:14
 */
@FeignClient(value = "book8081",path = "/book")
public interface BookFeign {

    @GetMapping("/{id}")
    public Book findById(@PathVariable("id") Long id);

    @GetMapping("/update/{bid}")
    public boolean updateAmount(@PathVariable("bid") Long bid);
}
